﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace STKMIS.Model
{
    /// <summary>
    /// 的实体类
    /// </summary>
    [Serializable]
    public class PoductTypeModel
    {
        // 常量
        public const string tableName = "ProductType";
        public const string primaryKeyName = "ProTypeID";

        // 成员变量
        private int _proTypeID;
        private string _proTypeName;
        private string _proTypeRemark;
        private Boolean _isDeleted;

        /// <summary>
        /// 字段名结构
        /// <summary>
        public struct FieldName
        {
            public const string proTypeID = "ProTypeID";
            public const string proTypeName = "ProTypeName";
            public const string proTypeRemark = "ProTypeRemark";
            public const string isDeleted = "IsDeleted";
        }

        /// <summary>
        /// 默认构造函数
        /// <summary>
        public PoductTypeModel() { }

        /// <summary>
        /// 带参构造函数
        /// <summary>
        ///<param name="proTypeID">主键ID</param>
        ///<param name="proTypeName">产品类型名称</param>
        ///<param name="proTypeRemark">产品类型备注</param>
        ///<param name="isDeleted">是否已删除</param>
        public PoductTypeModel(int proTypeID, string proTypeName, string proTypeRemark, Boolean isDeleted)
        {
            this._proTypeID = proTypeID;
            this._proTypeName = proTypeName;
            this._proTypeRemark = proTypeRemark;
            this._isDeleted = isDeleted;
        }

        /// <summary>
        /// 主键ID
        /// <summary>
        public int ProTypeID
        { 
            get { return _proTypeID; }
            set { _proTypeID = value; }
        }

        /// <summary>
        /// 产品类型名称
        /// <summary>
        public string ProTypeName
        { 
            get { return _proTypeName; }
            set { _proTypeName = value; }
        }

        /// <summary>
        /// 产品类型备注
        /// <summary>
        public string ProTypeRemark
        { 
            get { return _proTypeRemark; }
            set { _proTypeRemark = value; }
        }

        /// <summary>
        /// 是否已删除
        /// <summary>
        public Boolean IsDeleted
        { 
            get { return _isDeleted; }
            set { _isDeleted = value; }
        }
    }
}
